<?php
//日本語
class PmaimaiIconHelper extends AppHelper {
	var $helpers = array('Html', 'Form');
	
	
	function makeSelectIcon($icons, $iconID)
	{
		$array = array();
		foreach($icons as $icon){
			$array[$icon['Icon']['id']] = hq($icon['Icon']['name']).$this->Html->image(Configure::read('Path.Icon').$icon['Icon']['name'].'.'.$icon['Icon']['ext'], array('alt' => $icon['Icon']['name']));
		}
		return $this->output($array);
		/*
		$array = array();
		foreach($arrayData as $value){
			$array[$value['id']] = hq($value['name']).$this->Html->image(Configure::read('Path.Icon').$value['name'].'.'.$value['ext'], array('alt' => $value['name']));
		}
		return $this->output($this->Form->radio('iconid', $array, array('legend' => false, 'separator' => ' ')));
		*/
	}
	
}